<div class="login-shade" i-dom="logShade"></div>

<div class="login-body" i-dom="logBody">
    <div>
        {{if close}}
        <div class="login-close" i-tap="close"></div>
        {{/if}}
        <div class="login-title">绑定手机号</div>
        <div class="login-input">
            <input type="tel" maxlength="11" placeholder="您的手机号" i-dom="tel" i-keyup="vecStatusCheck">
        </div>
        <div class="login-input">
            <div class="login-getvec un" i-dom="getvec" i-tap="getCaptcha">获取验证码</div>
            <input type="tel" maxlength="6" placeholder="收到的验证码" i-dom="captcha" i-keyup="btnStatusCheck">
        </div>
        <button class="login-button un" i-dom="loginbtn" i-tap="login">进入商城</button>
    </div>
</div>

<style>
    .login-shade {
        position: fixed;
        width: 100%;
        height: 150%; /* 150%是为了在ios滑动中锁死webview也不会产生BUG */
        bottom: 0;
        left: 0;
        opacity: 0;
        z-index: 200;
        transition: opacity 0.3s;
        -webkit-transition: opacity 0.3s;
        background: rgba(0, 0, 0, 0.4);
    }

    .login-body {
        position: fixed;
        transition: width 0.2s;
        background: #fafafa;
        -webkit-transition: height 0.2s;
        z-index: 202;
    }

    .login-body > div {
        text-align: center;
        padding: 8px;
        opacity: 0;
        transition: opacity 0.1s;
        -webkit-transition: opacity 0.1s;
    }

    .login-title {
        padding: 10px;
        font-size: 14px;
        color: #888888;
    }

    .login-close {
        position: absolute;
        right: 0;
        margin: 12px 16px;
        width: 12px;
        height: 12px;
        float: right;
        background: url(img/ic_close.png) no-repeat center;
        background-size: contain;
    }

    .login-getvec.un {
        color: #dddddd;
    }

    .login-getvec {
        position: absolute;
        right: 8px;
        text-align: center;
        height: 44px;
        line-height: 44px;
        font-size: 12px;
        color: #ffba00;
    }

    .login-input > input {
        letter-spacing: 0.1em;
        border-radius: 0;
        margin-bottom: 8px;
        border-bottom: solid 1px #f0f0f0;
        text-indent: 8px;
        height: 44px;
        display: block;
        width: 100%;
    }

    .login-button.un {
        background: #dddddd;
        color: #888888;
    }

    .login-button {
        display: block;
        width: 100%;
        background: #f9e043;
        height: 44px;
        line-height: 44px;
        font-size: 16px;
    }

</style>